import api from "./api_base";

export const uploadHddInfo = (data) => {
  return api.post("/hdd/info", data);
};

//分页获取硬盘信息
export const getHddInfo = (page, limit, data) => {
  return api.get(`/hdd/info`, {
    params: {
      page,
      limit,
      ...data,
    },
  });
};

//通过id更新硬盘信息
export const updateHddInfo = (id, data) => {
  return api.post(`/hdd/info/${id}`, data);
};

//通过id删除硬盘信息
export const deleteHddInfo = (id) => {
  return api.post(`/hdd/info/delete/${id}`);
};
